package org.yzh.web.service;

import org.yzh.web.model.entity.VideoDownloadDO;
import org.yzh.web.model.vo.VideoDownload;
import org.yzh.web.model.vo.VideoDownloadForm;
import org.yzh.web.model.vo.VideoDownloadQuery;

import java.util.List;

/**
 * @author lsj
 * @date 2021/1/17 15:34
 */
public interface VideoDownloadService {
    int delete(Long id);

    int insert(VideoDownloadDO record);

    int batchInsert(List<VideoDownloadDO> records);


    List<VideoDownloadDO> find(VideoDownloadQuery query);

    List<VideoDownload> findHistory(VideoDownloadQuery query);


    int update(VideoDownloadDO record);

    int addVideoDownload(VideoDownloadForm form);

    void updateVideoDownloadStatus();
}
